From a641202f4026d8104b2635ae7c3cd56d052b7258 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 4 May 2007 14:30:02 +0000 Subject: [PATCH] * (bug 9780) Fix normalization of titles with initial colon followed by whitespace --- includes/Title.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Title.php b/includes/Title.php index 531944aae5..0ff2e8073b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1637,6 +1637,7 @@ class Title { if ( ':' == $dbkey{0} ) { $this->mNamespace = NS_MAIN; $dbkey = substr( $dbkey, 1 ); # remove the colon but continue processing + $dbkey = trim( $dbkey, '_' ); # remove any subsequent whitespace } # Namespace or interwiki prefix -- 2.20.1